Skip to content

TaskObservableMethodBuilder.SetStateMachine(IAsyncStateMachine) method

Defined in

Type: TaskObservableMethodBuilder Namespace: System.Runtime.CompilerServices Assembly: System.Reactive.dll

Applies to

netstandard2.0

public void SetStateMachine(IAsyncStateMachine stateMachine)

Summary: Associates the builder with the specified state machine.

Parameters

NameTypeDescription
stateMachineIAsyncStateMachineThe state machine instance to associate with the builder.

Exceptions

TypeCondition
System.ArgumentNullExceptionstateMachine is null.
System.InvalidOperationExceptionThe state machine was previously set.